home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / we-20k.zip / WINEDIT.MA_ < prev    next >
Text File  |  1993-01-21  |  72KB  |  2,489 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.                               WinEdit User's Manual
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.                                                     Wilson WindowWare, Inc.
  46.                                                2701 California Ave SW  #212
  47.                                                    Seattle,  WA  98116  USA
  48.  
  49.  
  50.                                                    Orders:   (800) 762-8383
  51.                                                    Support:  (206) 937-9335
  52.                                                    Fax:      (206) 935-7129
  53.  
  54.  
  55.  
  56.  
  57.                       Copyright c 1990-1993 by Steve Schauer
  58.  
  59.                                All Rights Reserved
  60.  
  61.  
  62.  
  63.        No part of this manual may be reproduced or transmitted in any form
  64.        or by any means, electronic or mechanical, including photocopying
  65.        and recording, for any purpose without the express written
  66.        permission of Wilson WindowWare, Inc.  Information in this document
  67.        is subject to change without notice and does not represent a
  68.        commitment by Wilson WindowWare, Inc.
  69.  
  70.  
  71.  
  72.        The software described herein is furnished under a license
  73.        agreement.  It is against the law to copy this software under any
  74.        circumstances except as provided by the license agreement.
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.         U.S. GOVERNMENT RESTRICTED RIGHTS
  83.  
  84.        Use, duplication, or disclosure by the Government is subject  to
  85.        restrictions as set forth in subdivision (b)(3)(ii) of the Rights
  86.        in Technical Data and Computer Software clause at 252.227-7013.
  87.        Contractor/manufacturer is Wilson WindowWare /2701 California Ave
  88.        SW /suite 212/ Seattle, WA 98116
  89.  
  90.  
  91.  
  92.  
  93.  
  94.          TRADEMARKS
  95.  
  96.          Microsoft and MS-DOS are registered trademarks of Microsoft
  97.          Corporation.
  98.  
  99.          Windows is a trademark of Microsoft Corporation.
  100.  
  101.          WinEdit is a trademark of Wilson WindowWare, Inc.
  102.  
  103.  
  104.  
  105.  
  106.                                      CONTENTS
  107.  
  108.  
  109.        WinEdit OverView ................................1
  110.  
  111.        WinEdit Keyboard and Mouse Commands .............2
  112.             Moving the Insertion Point .................2
  113.             Selecting Text .............................2
  114.             Help Keys ..................................3
  115.             Other Keys .................................3
  116.             Mouse Operations ...........................4
  117.  
  118.        Running Multiple Instances of WinEdit ...........5
  119.  
  120.        WinEdit Menus ...................................6
  121.             File Menu Commands .........................6
  122.             Edit Menu Commands .........................9
  123.             Search Menu Commands ......................11
  124.             Project Menu Commands .....................13
  125.             Macro Menu Commands .......................14
  126.             Window Menu Commands ......................15
  127.             Utility Menu Commands .....................16
  128.  
  129.        WinEdit Procedures .............................17
  130.             Changing Printers and Printer Options .....17
  131.             Compiling (Running other programs) ........17
  132.             Control Bar ...............................19
  133.  
  134.        Editing Text ...................................20
  135.             Editing Shortcuts: ........................20
  136.             Deleting Text .............................20
  137.             Tab and SHIFT Tab .........................21
  138.  
  139.        Working With Multiple Documents ................22
  140.  
  141.        Extended Help ..................................23
  142.  
  143.        Finding Text ...................................24
  144.  
  145.        Using Regular Expressions ......................25
  146.  
  147.        Windows 3.1 Support ............................26
  148.             "Drag and Drop" ...........................26
  149.             "Sounds" ..................................26
  150.  
  151.        Printing Documents .............................27
  152.  
  153.        Saving Documents ...............................28
  154.  
  155.        Setting Preferences ............................29
  156.  
  157.  
  158.  
  159.  
  160.  
  161.        Setting Margins, Headers and Footers ...........30
  162.             Headers and Footers .......................30
  163.             Margins ...................................30
  164.  
  165.        Undo and Redo ..................................31
  166.             Undo ......................................31
  167.             Redo ......................................31
  168.  
  169.        WinEdit Project Files ..........................32
  170.  
  171.        WinEdit Extensions .............................33
  172.             Creating a WinEdit Extension ..............33
  173.             Loading the Extension .....................34
  174.             Processing Menu Selections ................36
  175.             Initializing the Extension Menu ...........36
  176.             WinEdit Extension Example .................37
  177.  
  178.        Configuring the Utility Menu ...................42
  179.  
  180.  
  181.  
  182.  
  183.  
  184.        WinEdit OverView
  185.  
  186.        WinEdit is an ASCII text editor capable of editing numerous ASCII
  187.        text files of an almost unlimited size (limited only by available
  188.        Windows memory).  WinEdit is first and foremost a programmer's
  189.        editor, with many features designed for creating and maintaining
  190.        program source code.  Build, debug and run your programs directly
  191.        from WinEdit with the ability to view any compiler errors or
  192.        warnings and the corresponding source code.
  193.  
  194.        As an ASCII text editor, WinEdit allows you to open numerous text
  195.        files at once, print half sized "two-up" pages side by side in
  196.        landscape orientation, print headers and footer text (document
  197.        name, date and time, page number), merge files together, and word
  198.        wrap your text to the size of the window (word wrap).
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.                                                                           1
  234.  
  235.  
  236.  
  237.  
  238.  
  239.        WinEdit Keyboard and Mouse Commands
  240.  
  241.  
  242.        Moving the Insertion Point
  243.  
  244.        Key(s)                        Function
  245.  
  246.        Up Arrow                      Moves up one line.
  247.        Down Arrow                    Moves down one line.
  248.        Right Arrow                   Moves right one character.
  249.        Left Arrow                    Moves left one character.
  250.        CTRL+Right Arrow              Moves right one word (insertion point
  251.                                      is positioned at the beginning of the
  252.                                      next word).
  253.        CTRL+Left Arrow               Moves left one word (insertion point
  254.                                      is positioned at the beginning of the
  255.                                      previous word).
  256.        Home                          Moves to the beginning of the line.
  257.        End                           Moves to the end of the line.
  258.        PgUp                          Moves the view up one screenful.
  259.        PgDn                          Moves the view down one screenful.
  260.        CTRL+Home                     Moves to the beginning of the
  261.                                      document.
  262.        CTRL+End                      Moves to the end of the document.
  263.  
  264.        Selecting Text
  265.  
  266.        Key(s)                        Function
  267.  
  268.        SHIFT+Left or Right Arrow     Extends the selection of text one
  269.                                      character at a time.
  270.        SHIFT+Down or Up              Selects one line of text up or down
  271.                                      from the current selection.
  272.        SHIFT+Home                    Selects text from the insertion point
  273.                                      to the beginning of the line.
  274.        SHIFT+End                     Selects text from the insertion point
  275.                                      to the end of the line.
  276.        CTRL+SHIFT+Left Arrow         Selects the previous word.
  277.        CTRL+SHIFT+Right Arrow        Selects the next word.
  278.        CTRL+SHIFT+PgUp               Selects the previous screen of text.
  279.        CTRL+SHIFT+PgDn               Selects the next screen of text.
  280.        CTRL+SHIFT+Home               Selects text from the insertion point
  281.                                      to the beginning of the document.
  282.        CTRL+SHIFT+End                Selects text from the insertion point
  283.                                      to the end of the document.
  284.  
  285.  
  286.  
  287.  
  288.                                                                           2
  289.  
  290.  
  291.  
  292.  
  293.  
  294.        Help Keys
  295.  
  296.        Key(s)                        Function
  297.  
  298.        F1                            WinEdit Help Index
  299.        Shift+F1*                     Extended Help (Keyword Help)
  300.  
  301.        *The cursor needs to be positioned on the desired function, message
  302.        or data structure name when pressing SHIFT+F1.
  303.  
  304.        Other Keys
  305.  
  306.  
  307.        Press the Tab key to insert a number of spaces and bring the
  308.        insertion point to the next tab stop.  The number of spaces
  309.        inserted when the tab key is pressed is configurable in File
  310.        Preferences (choose any value from 1 to 12).  For example if the
  311.        "Tab Size" is set to 3 in File Preferences, pressing the Tab key
  312.        will advance the cursor three spaces to the right.
  313.  
  314.        The SHIFT+Tab key combination moves the current position back to
  315.        the previous tab stop (to the left).  For example if the "Tab Size"
  316.        is set to 3 in File Preferences, pressing the SHIFT+Tab key
  317.        combination will move the cursor three spaces/positions to the
  318.        left.
  319.  
  320.        If more than one line is selected, the Tab and SHIFT+Tab keys will
  321.        shift every line in the selection forwards (Tab) or backwards
  322.        (SHIFT+Tab) by one tab stop.
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.  
  337.  
  338.  
  339.  
  340.  
  341.  
  342.  
  343.                                                                           3
  344.  
  345.  
  346.  
  347.  
  348.  
  349.        Mouse Operations
  350.  
  351.  
  352.        Click the Left mouse button on Control Bar along the top of the
  353.        WinEdit screen and drag your mouse to "tear" the Control Bar from
  354.        the top of the window.  The Control Bar can be resized or moved
  355.        anywhere on the screen.  See Control Bar for more information.
  356.  
  357.  
  358.        Click the Right mouse button anywhere on the document window and a
  359.        Popup menu will appear with a number of commands (such as Open,
  360.        Find, Save and Next Error).
  361.  
  362.        Hold the SHIFT key and click the Right mouse button on any
  363.        function, message, or data structure name and WinEdit will access
  364.        the help system topic for that item.
  365.  
  366.        Double click the Left mouse button over a word to select the word.
  367.  
  368.        Double click the Left mouse on message area of the status bar (the
  369.        area to the right of the INS/OVR indicator) to jump to the Next
  370.        Error message.
  371.  
  372.        Double click the Left mouse button on word "Line" in the status bar
  373.        to bring up the Goto to Line box.
  374.  
  375.        Double click the Left mouse button on "INS" or "OVR" in the status
  376.        bar to toggle between insert and overtype mode.
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.                                                                           4
  399.  
  400.  
  401.  
  402.  
  403.  
  404.        Running Multiple Instances of WinEdit
  405.  
  406.        When starting a new copy of WinEdit, the active copy will be
  407.        reactivated.  If an associated file is double clicked, the current
  408.        copy will load that file.  WinEdit will only allow a single
  409.        instance, unless the following entry is added to the WINEDIT.INI
  410.        file:
  411.  
  412.             MULTIPLEINST=1
  413.  
  414.        The WINEDIT.INI file is a text file located in your Windows
  415.        directory.
  416.  
  417.  
  418.  
  419.  
  420.  
  421.  
  422.  
  423.  
  424.  
  425.  
  426.  
  427.  
  428.  
  429.  
  430.  
  431.  
  432.  
  433.  
  434.  
  435.  
  436.  
  437.  
  438.  
  439.  
  440.  
  441.  
  442.  
  443.  
  444.  
  445.  
  446.  
  447.  
  448.  
  449.  
  450.  
  451.  
  452.  
  453.                                                                           5
  454.  
  455.  
  456.  
  457.  
  458.  
  459.        WinEdit Menus
  460.  
  461.  
  462.        File Menu Commands
  463.  
  464.        New
  465.        Opens a new untitled document window.  Existing documents will not
  466.        be closed when opening a new document.
  467.  
  468.  
  469.        Open...
  470.        Opens a new window with the contents of an existing document/file.
  471.        List the files of a certain type by selecting one of the following
  472.        from the lower list box of file types:
  473.           Source Files (*.c;*.h;*.rc;*.def)
  474.           Text Files (*.txt)
  475.           All Files (*.*)
  476.        WinEdit can open an ASCII text file as large as available Windows
  477.        memory.  Select the appropriate drive and directory, select a file
  478.        to open and choose the OK button.  The default directory for the
  479.        File Open command is set in the Project Management dialog (choose
  480.        Configure from the Project menu).  Once a file is opened, the full
  481.        path and filename is displayed in the caption bar of the window.
  482.  
  483.  
  484.        Merge...
  485.        To merge in the contents of another file into the active
  486.        windows/document, position your cursor at the location where you
  487.        would like the text from another file to appear.  Choose Merge from
  488.        the File menu, select a filename and choose the OK button to merge
  489.        in the text.  WinEdit will merge the contents of the file you
  490.        selected starting on the line just below your insertion point.
  491.  
  492.  
  493.        Previous Files...
  494.        Choose Previous Files to quickly open a file that you previously
  495.        edited.  WinEdit remembers the last 20 files that you have had open
  496.        and lists these files in the Reopen File dialog.  Double click on a
  497.        filename in the list box or select the file and choose the OK
  498.        button to open the file.  If the you wish to open is not listed,
  499.        choose the Open Now button to access the standard File Open dialog.
  500.  
  501.  
  502.  
  503.  
  504.  
  505.  
  506.  
  507.  
  508.                                                                           6
  509.  
  510.  
  511.  
  512.  
  513.  
  514.        Close
  515.        To close the document window before you, select Close from the File
  516.        menu or double click on the close bar for the active window.  If
  517.        the document has changed since you last saved the file, WinEdit
  518.        will prompt you to save changes to the file.
  519.  
  520.  
  521.        Save
  522.        Saves the contents of the current window to disk.  If the document
  523.        is UNTITLED, WinEdit prompts you for a document name.  In the Save
  524.        File As dialog, provide a File Name with an extension (WinEdit does
  525.        not automatically add a file extension to your filename).  The file
  526.        remains open after it is saved to disk.
  527.  
  528.  
  529.        Save As...
  530.        Choose the Save As option to save the contents of the active window
  531.        to a new or different filename.  With the Save As command you can
  532.        save FILE1.TXT as FILE2.TXT, leaving FILE1.TXT on disk as
  533.        previously saved with the latest changes written to FILE2.TXT.
  534.  
  535.  
  536.        Print
  537.        Prints the current document using the print settings entered in the
  538.        Page Setup dialog box.
  539.  
  540.  
  541.        Page Setup...
  542.        Allows you to set the margins, header and/or footer text, select a
  543.        printer font, and choose a page layout (one portrait page of text
  544.        per page or two pages in a landscape orientation).
  545.  
  546.  
  547.        Printer Setup...
  548.        Before printing from WinEdit, choose Printer Setup to access
  549.        printer options for the active Windows printer driver.
  550.  
  551.  
  552.        Preferences...
  553.        Allows you to choose the screen font WinEdit uses for displaying
  554.        text in the document window, the tab size (number of spaces per
  555.        tab), whether the Control Bar is shown, and startup window size and
  556.        an optional message box sound.
  557.  
  558.  
  559.  
  560.  
  561.  
  562.  
  563.                                                                           7
  564.  
  565.  
  566.  
  567.  
  568.  
  569.        Exit
  570.        Closes all open windows and exits the WinEdit program.  If there
  571.        are any unsaved files, WinEdit prompts you to save each file before
  572.        exiting.  If you intend to close all of the open windows/documents
  573.        and not exit WinEdit, then choose Close All from the Window menu.
  574.  
  575.  
  576.  
  577.  
  578.  
  579.  
  580.  
  581.  
  582.  
  583.  
  584.  
  585.  
  586.  
  587.  
  588.  
  589.  
  590.  
  591.  
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598.  
  599.  
  600.  
  601.  
  602.  
  603.  
  604.  
  605.  
  606.  
  607.  
  608.  
  609.  
  610.  
  611.  
  612.  
  613.  
  614.  
  615.  
  616.  
  617.  
  618.                                                                           8
  619.  
  620.  
  621.  
  622.  
  623.  
  624.        Edit Menu Commands
  625.  
  626.  
  627.        Undo
  628.        Allows you to "undo" previous editing actions.  WinEdit can undo
  629.        the following edits:
  630.             Inserting a character.
  631.             Deleting a character.
  632.             Cutting a selection.
  633.             Pasting a selection.
  634.        WinEdit can undo the last 2000 editing actions.  Press CTRL+Z to
  635.        undo the last editing action.
  636.  
  637.  
  638.        Redo
  639.        Allows you to reverse any Undo command.  If you undo an editing
  640.        action by mistake, you can "redo" the edit.  Press SHIFT+CTRL+Z to
  641.        redo the last editing action.
  642.  
  643.  
  644.        Cut
  645.        Removes the current selection (highlighted text) from the document
  646.        and places it on the Windows clipboard.  You can then paste the
  647.        contents of the clipboard at another position in the document, into
  648.        a new document, or into another Windows application.
  649.  
  650.  
  651.        Copy
  652.        Places a copy of the current selection (highlighted text) on the
  653.        Windows clipboard without removing it from the document.  You can
  654.        then paste the contents of the clipboard at another position in the
  655.        document, into a new document, or into another Windows application.
  656.  
  657.  
  658.        Paste
  659.        Inserts the text from the Windows clipboard into the document at
  660.        the current insertion point.
  661.  
  662.  
  663.        Delete
  664.        Removes the current selection from the document without changing
  665.        the contents of the clipboard.  If there is no selection, the
  666.        character to the right of the insertion point is deleted.
  667.  
  668.  
  669.  
  670.  
  671.  
  672.  
  673.                                                                           9
  674.  
  675.  
  676.  
  677.  
  678.        Insert Mode
  679.        When Insert Mode is selected from the Edit menu, text is inserted
  680.        at the current insertion position (if there is text to the right of
  681.        the insertion position the text is pushed to the right as you
  682.        insert text).  When Insert Mode is not selected, WinEdit is in
  683.        "Overtype" mode.  When in Overtype mode, text to the right of the
  684.        insertion position is overwritten with the new text that is typed.
  685.        The status line at the bottom of the WinEdit screen, indicates the
  686.        current editing status:
  687.           OVR - Overtype is active
  688.           INS - Insert mode is active
  689.        The Insert or INS key toggles the editing mode from OVR to INS and
  690.        back.
  691.  
  692.  
  693.        Word Wrap
  694.        When Word Wrap is selected from the Edit menu, any text you enter
  695.        will automatically wrap to the next line when the end of the line
  696.        is reached (the end of the line is determined by the width of the
  697.        document window).  Turning Word Wrap "on" does not affect the word
  698.        wrap of existing text, but rather only new text that is typed into
  699.        the window.
  700.  
  701.  
  702.        Column Block  (ALT+C)
  703.  
  704.        To select a column of text, turn the Column Break option on (press
  705.        ALT+C) prior to selecting text.  You can then select text using the
  706.        mouse or by holding down the Shift key and using the arrow keys on
  707.        the keyboard to extend the selection.  Column select allows you to
  708.        select a portion of a line for multiple lines, i.e.  columns 5-10
  709.        for lines 100-120.  The status bar at the bottom of the WinEdit
  710.        window displays the column and line number for the cursor position
  711.        (i.e. Line 6 Col 16).
  712.  
  713.  
  714.  
  715.  
  716.  
  717.        Select All
  718.        Selects all of the text in the document window.
  719.  
  720.  
  721.  
  722.  
  723.  
  724.  
  725.  
  726.  
  727.  
  728.                                                                          10
  729.  
  730.  
  731.  
  732.  
  733.  
  734.        Search Menu Commands
  735.  
  736.  
  737.  
  738.        Find...
  739.        Searches for text in a document.
  740.        You can specify these options:
  741.        * Find                   Type the text you want to find.
  742.        * Match Upper/Lower      Case Select this box to match the upper
  743.                                 and lower case exactly.
  744.        * Forward                Search forward in the document starting at
  745.                                 the insertion point.
  746.        * Backward               Search backward in the document starting
  747.                                 at the insertion point.
  748.  
  749.  
  750.  
  751.        Repeat Last Find
  752.        Allows you to repeat the last search using the same options as the
  753.        previous search, without opening the Find dialog box again.  The
  754.        quick key combination to repeat the last search/find is CTRL+F5.
  755.  
  756.  
  757.  
  758.        Change...
  759.        Searches for text within a document and replaces the found text
  760.        with text you specify (essentially a search and replace function).
  761.        You can specify the following options:
  762.        * Find              Type the text you want to find in the document.
  763.        * Replace with      Type the text you want to insert in place of
  764.                            the found text.
  765.        * Match case        Select this box to match the upper and lower
  766.                            case exactly.
  767.        * Search backwards  Search backward through the document starting
  768.                            at the insertion point.
  769.        * Confirm before changing     When the search text is found, you
  770.                            will be asked if you want to change the
  771.                            occurrence with the replacement text (choose
  772.                            Yes, No or Cancel).
  773.        * Change All        When this option is selected, WinEdit will
  774.                            start at the current cursor position and search
  775.                            the entire document.  If the "Confirm before
  776.                            changing" box is selected, you will be asked if
  777.                            you want to change the occurrence with the
  778.                            replacement text (choose Yes, No or Cancel).
  779.  
  780.  
  781.  
  782.  
  783.                                                                          11
  784.  
  785.  
  786.  
  787.  
  788.        Next Error
  789.        Prev Error
  790.        If any warning or error messages have been captured from the output
  791.        of one of the Project Menu items, the Next and Prev Error menu
  792.        selections allow you to review the error messages and the
  793.        corresponding source code. Double clicking with the mouse on
  794.        message area of the status bar (the area to the right of the
  795.        INS/OVR indicator) is equivalent to choosing Next Error from the
  796.        Search menu.
  797.  
  798.  
  799.  
  800.        View Compiler Output
  801.        If any of the options in the Project Management dialog (choose
  802.        Configure... from the Project menu) were set to "capture output",
  803.        the View Compiler Output command will open a new document window
  804.        with the contents of the captured output file.
  805.  
  806.  
  807.  
  808.        Go to line...
  809.        Choose this menu item to jump to a particular line number in your
  810.        document.  After choosing "Go to line", type the appropriate line
  811.        number in the "Go to line" box on the status bar.  Press the Enter
  812.        key and WinEdit will accept the number and move the cursor to the
  813.        beginning of the indicated line.  By default the current line
  814.        number is displayed in the "Go to line" box on the status bar.
  815.        There are three ways to access the "Goto box" on the status bar:
  816.  
  817.         Press ALT+G on the keyboard.
  818.         Double click on the line and column text on the status bar.
  819.         Choose "Go to line..." from the Search menu.
  820.  
  821.  
  822.  
  823.  
  824.  
  825.  
  826.  
  827.  
  828.  
  829.  
  830.  
  831.  
  832.  
  833.  
  834.  
  835.  
  836.  
  837.  
  838.                                                                          12
  839.  
  840.  
  841.  
  842.  
  843.  
  844.  
  845.        Project Menu Commands
  846.  
  847.        The commands on this menu allow you to run other programs from
  848.        within WinEdit.  Before compiling your program using the choose the
  849.        Configure menu command to enter the necessary commands to run the
  850.        program/compiler.  Select the Capture Output box and WinEdit will
  851.        run the program you configure and save its output (choose View
  852.        Compiler Output from the Search menu to view compiler errors).
  853.        When the compilation (Build or Rebuild) finishes, WinEdit will ask
  854.        if you wish to review any warning or error messages, along with the
  855.        corresponding source code.
  856.           %f = file name
  857.           %n = base name with no extension
  858.           %e = file extension only
  859.  
  860.  
  861.  
  862.        Compile command:    tee.com cl -c -AM -W4 -Zps -Od -DNOCOMM %f
  863.        Make command:  tee.com nmk.com %n
  864.        Rebuild command:    tee.com nmk.com /a %n
  865.        Debug command: cvw %n
  866.        Execute command:    %n
  867.  
  868.  
  869.  
  870.  
  871.  
  872.         TEE.COM is included with WinEdit and is the DOS equivalent of the
  873.         UNIX TEE.  WinEdit uses TEE.COM to redirect the stdout and stderr
  874.         to a file while also echoing the information to the screen.
  875.  
  876.  
  877.        Note: WinEdit constructs a batch file to execute from DOS when you
  878.        choose to capture output.  For this reason, when running a Windows
  879.        application from the Run menu, do not choose to capture the output.
  880.  
  881.  
  882.  
  883.  
  884.  
  885.  
  886.  
  887.  
  888.  
  889.  
  890.  
  891.  
  892.  
  893.                                                                          13
  894.  
  895.  
  896.  
  897.  
  898.  
  899.        Macro Menu Commands
  900.  
  901.        The macro menu includes a macro recorder (Record on) and a listing
  902.        of your recorded macros.  To turn on the macro recorder press ALT+R
  903.        from the keyboard or choose Record on from the Macro menu.  The
  904.        command name for the Macro recorder changes to Record off when the
  905.        macro recorder is on (also note that the text "Recording macro"
  906.        text appears in the lower right corner of the status bar).  While
  907.        the recorder is "on", WinEdit will record your keystrokes so that
  908.        they can later be assigned to a key for quick playback.  To turn
  909.        off the recorder once your macro is complete, choose Record off
  910.        from the Macro menu or press ALT+R.
  911.  
  912.        Once the recorder is turned off a dialog will appear prompting you
  913.        for information about the recorded macro.  WinEdit prompts you for
  914.        a name for the macro.  The name you enter will be listed under the
  915.        macro menu along with it's corresponding ALT key combination.  The
  916.        key combinations that can be assigned are ALT+1 - ALT+10.
  917.  
  918.        Example of a recorded macro to delete the current line:
  919.  
  920.        1. Turn on the macro recorder by pressing ALT+R or choose "Record
  921.           on" from the Macro menu.
  922.  
  923.        2. Press the Home key on the keyboard to move to the beginning of
  924.           the line.
  925.  
  926.        3. Press SHIFT+END to highlight from the beginning of the line to
  927.           the end.
  928.  
  929.        4. Press the Del or Delete key.
  930.  
  931.        5. Choose "Record off" from the Macro menu or press ALT+R.
  932.  
  933.        6. Choose a number from 1 to 10 to indicate the ALT key combination
  934.           for the macro (i.e. ALT+1).
  935.  
  936.        7. Type a name for the macro such as "Delete Line" and choose the OK
  937.           button.
  938.  
  939.        8. Drop down the macro menu (ALT+M) to see the newly added recorded
  940.           macro.
  941.  
  942.        Note: The macro recorder can only record keystrokes and not mouse
  943.        movements.
  944.  
  945.  
  946.  
  947.  
  948.                                                                          14
  949.  
  950.  
  951.  
  952.  
  953.  
  954.        Window Menu Commands
  955.  
  956.  
  957.        Tile
  958.        Choose Tile from the Windows menu to arrange all of the open
  959.        windows on the screen so that a portion of each windows can be
  960.        seen.
  961.  
  962.  
  963.  
  964.  
  965.  
  966.        Cascade
  967.        Choose Cascade to arrange all of the open windows in a stack.  When
  968.        this is done the title bar for each window is visible so that the
  969.        window can be made active by clicking on the title bar.
  970.  
  971.  
  972.        Next
  973.        Choose Next to change the active window to the next open document
  974.        window.
  975.  
  976.  
  977.        Arrange Icons
  978.        WinEdit windows that have been minimized appear at the bottom of
  979.        the screen as an icon.  Arrange Icons will place the document
  980.        window icons along the bottom of the window in rows left to right.
  981.  
  982.  
  983.        Close All
  984.        Closes all open document windows.  If changes have been made to a
  985.        document since it was last saved, you will be prompted to save
  986.        changes before WinEdit closes the file.
  987.  
  988.  
  989.        Document Names
  990.        Each open window is listed by name at the bottom of the Window
  991.        menu.  Choose a window name and the active window will change so
  992.        that the selected window will become the active document window.
  993.  
  994.  
  995.  
  996.  
  997.  
  998.  
  999.  
  1000.  
  1001.  
  1002.  
  1003.                                                                          15
  1004.  
  1005.  
  1006.  
  1007.  
  1008.  
  1009.  
  1010.        Utility Menu Commands
  1011.  
  1012.        The Utility Menu is a custom menu created with WIL commands.  For
  1013.        complete help on using the WIL language, consult the WIL.HLP help
  1014.        file.
  1015.        The menu items on the Utility Menu and the functions behind them
  1016.        are totally configurable.  The WINEDIT.MNU file contains the menu
  1017.        item text and the WIL language functions behind them.  To edit this
  1018.        file and thus edit the Utility Menu, choose "Edit Utility Menu"
  1019.        from the Utility Menu.
  1020.  
  1021.  
  1022.  
  1023.  
  1024.  
  1025.  
  1026.  
  1027.  
  1028.  
  1029.  
  1030.  
  1031.  
  1032.  
  1033.  
  1034.  
  1035.  
  1036.  
  1037.  
  1038.  
  1039.  
  1040.  
  1041.  
  1042.  
  1043.  
  1044.  
  1045.  
  1046.  
  1047.  
  1048.  
  1049.  
  1050.  
  1051.  
  1052.  
  1053.  
  1054.  
  1055.  
  1056.  
  1057.  
  1058.                                                                          16
  1059.  
  1060.  
  1061.  
  1062.  
  1063.  
  1064.        WinEdit Procedures
  1065.  
  1066.  
  1067.        Changing Printers and Printer Options
  1068.  
  1069.        Select Printer Setup from the File menu to change settings in the
  1070.        printer setup dialog for your installed Windows printer drivers.
  1071.        Select a printer driver and choose the Setup button to access the
  1072.        printer driver options (the resulting dialog .
  1073.  
  1074.        Select Page Setup from the File menu to change the following
  1075.        WinEdit page settings:
  1076.  
  1077.           Margins
  1078.           Header and/or footer text
  1079.           The printer font
  1080.           Page layout (one or two pages up)
  1081.  
  1082.        WinEdit will remember your page settings from session to session.
  1083.  
  1084.        Compiling (Running other programs)
  1085.  
  1086.        The first five commands on the Project menu are user-configurable
  1087.        commands to execute another program.  You may configure these
  1088.        commands to execute any .EXE  or .BAT program by typing the command
  1089.        text in the appropriate Configure... edit box..
  1090.  
  1091.  
  1092.        For example a sample compile line may read:
  1093.        tee.com cl -c -AM -W4 -Zps -Od -DNOCOMM %f
  1094.  
  1095.  
  1096.        If the program supports DOS redirection (as most compilers and
  1097.        linkers do) you can select the Capture Output box to have WinEdit
  1098.        capture the program's output in a file.  When the program has
  1099.        executed, WinEdit will allow you to review any messages generated,
  1100.        along with the corresponding source code.
  1101.  
  1102.  
  1103.        The following wildcards are provided so that filenames in the
  1104.        Project Management dialog do not need to be changed when compiling
  1105.        different files:
  1106.           %f = file name
  1107.           %n = base name, no extension
  1108.           %e = file extension only
  1109.  
  1110.  
  1111.  
  1112.  
  1113.                                                                          17
  1114.  
  1115.  
  1116.  
  1117.  
  1118.        If you select the Capture Output box, WinEdit will run the program
  1119.        you configure and save its output.  When the program finishes,
  1120.        WinEdit will ask if you wish to review any warning or error
  1121.        messages, along with the corresponding source code.
  1122.  
  1123.        WinEdit constructs a batch file to execute from DOS when you choose
  1124.        to capture output.  For this reason, when running a Windows
  1125.        application from the Run menu, do not choose to capture the output.
  1126.        In this case, just indicate the EXE to run in the Execute command
  1127.        edit box (such as Cardfile).  To run the exe listed in the Execute
  1128.        command edit box, do one of the following:
  1129.  
  1130.        1. Choose the traffic light button on the Control Bar.
  1131.  
  1132.        2. Press ALT+F7 from the keyboard.
  1133.  
  1134.        3. Choose Execute from the Project menu.
  1135.  
  1136.  
  1137.  
  1138.  
  1139.  
  1140.  
  1141.  
  1142.  
  1143.  
  1144.  
  1145.  
  1146.  
  1147.  
  1148.  
  1149.  
  1150.  
  1151.  
  1152.  
  1153.  
  1154.  
  1155.  
  1156.  
  1157.  
  1158.  
  1159.  
  1160.  
  1161.  
  1162.  
  1163.  
  1164.  
  1165.  
  1166.  
  1167.  
  1168.                                                                          18
  1169.  
  1170.  
  1171.  
  1172.  
  1173.  
  1174.        Control Bar
  1175.  
  1176.        The Control Bar allows you to access some frequently used commands
  1177.        by clicking on an icon button along the top of the window.  The
  1178.        function of the buttons left to right is as follows:
  1179.  
  1180.        Open       Access the File Open dialog.
  1181.        Save       Saves the contents of the document window to disk.
  1182.        File List  Reopen a file from a listing of the last open files.
  1183.        Print      Prints the contents of the document window.
  1184.        Undo       Restores the previous editing action.
  1185.        Redo       Restores the previous undo action.
  1186.        Cut        Cuts your selected text to the clipboard.
  1187.        Copy       Copy your selected text to the clipboard.
  1188.        Paste      Pastes the contents of the clipboard at cursor 
  1189.                   location.
  1190.        Find       Finds specified text in the document.
  1191.        Find Next  Finds text in the document using the previously entered
  1192.                   search string.
  1193.        Change     Allows you to change text (search and replace).
  1194.        Compile    Compile.
  1195.        Make       Make.
  1196.        Rebuild    Rebuild.  (Visible only on SuperVGA or above displays)
  1197.        Debug      Debug.
  1198.        Execute    Executes your program from WinEdit.
  1199.        Previous   Previous Error.
  1200.        Next       Next Error.
  1201.        Help       Keyword Help (Extended Help).
  1202.  
  1203.        The Control Bar along the top of the WinEdit screen can be resized
  1204.        and repositioned anywhere on the screen.  Click the left mouse
  1205.        button on the Control Bar and pull downward to "tear" the Control
  1206.        Bar from the top of the window (the mouse cursor will change to a
  1207.        box with the text TEAR).  Let go of the mouse button and the
  1208.        Control Bar is now floating on top of the WinEdit screen.  Position
  1209.        your mouse over the edge of the bar and you can resize the bar just
  1210.        as you can document windows.  The Control Bar can be docked along
  1211.        any window edge.  So if you'd like you can "dock" the control bar
  1212.        on the left of the WinEdit window.  To dock the bar, click in the
  1213.        middle of the Control Bar and move your cursor to the middle of the
  1214.        top, left, right or bottom window edge.  Move your mouse cursor
  1215.        until the cursor changes from "TEAR" to "DOCK".  Once your cursor
  1216.        reads "DOCK" release the left mouse button to dock the Control Bar
  1217.        along the window edge.
  1218.  
  1219.        You can turn the Control Bar on or off at any time from the File
  1220.        Preferences menu (mark or unmark the Show Control Bar check box).
  1221.  
  1222.  
  1223.                                                                          19
  1224.  
  1225.  
  1226.  
  1227.  
  1228.  
  1229.        Editing Text
  1230.  
  1231.        To "copy and paste", or "cut and paste" the selected text, do the
  1232.        following:
  1233.  
  1234.        1. Select the text to copy or cut.
  1235.  
  1236.        2. Choose Copy from the Edit menu to copy the selected text to the
  1237.           clipboard.  Or choose Cut from the Edit menu to cut the text to
  1238.           the clipboard.
  1239.  
  1240.        3. Move the insertion point where you want the text to appear.  Or
  1241.           if you want to replace a section of text with the contents of the
  1242.           clipboard, select the text in the document that you want
  1243.           replaced.
  1244.  
  1245.        4. Choose Paste from the Edit menu.
  1246.  
  1247.  
  1248.        Editing Shortcuts:
  1249.  
  1250.         Keypad + (Plus)
  1251.         Copies the current line to the clipboard if nothing is selected or
  1252.         if there is a selection, the + key functions the same as Edit Copy
  1253.         (CTRL+INS).
  1254.  
  1255.         Keypad - (Minus)
  1256.         Cuts the current line to the clipboard if nothing is selected or
  1257.         if there is a selection, the - key is the same as Edit Cut
  1258.         (SHIFT+DEL).
  1259.  
  1260.        Deleting Text
  1261.  
  1262.        To delete text without sending it to the Windows clipboard, do the
  1263.        following:
  1264.  
  1265.        1. Select the text to delete.
  1266.  
  1267.        2. Choose Delete from the Edit menu or press the Del key from the
  1268.           keyboard.
  1269.  
  1270.        If no text is selected, Edit Delete will delete the character to
  1271.        the right of the cursor.  To delete characters to the left of the
  1272.        cursor use the Backspace key.
  1273.  
  1274.  
  1275.  
  1276.  
  1277.  
  1278.                                                                          20
  1279.  
  1280.  
  1281.  
  1282.  
  1283.  
  1284.        Tab and SHIFT Tab
  1285.  
  1286.  
  1287.        Press the Tab key to insert a number of spaces and bring the cursor
  1288.        to the next tab stop.  The number of spaces inserted when the tab
  1289.        key is pressed is configurable in File Preferences (choose any
  1290.        value from 1 to 12).  For example if the "Tab Size" is set to 3 in
  1291.        File Preferences, pressing the Tab key will advance the cursor
  1292.        three spaces to the right.
  1293.  
  1294.        The SHIFT+Tab key combination moves the current position back to
  1295.        the previous tab stop (to the left).  For example if the "Tab Size"
  1296.        is set to 3 in File Preferences, pressing the SHIFT+Tab key
  1297.        combination will move the cursor three spaces/positions to the
  1298.        left.
  1299.  
  1300.        If more than one line is selected, the Tab and SHIFT+Tab keys will
  1301.        shift every line in the selection forwards (Tab) or backwards
  1302.        (SHIFT+Tab) by one tab stop.
  1303.  
  1304.  
  1305.  
  1306.  
  1307.  
  1308.  
  1309.  
  1310.  
  1311.  
  1312.  
  1313.  
  1314.  
  1315.  
  1316.  
  1317.  
  1318.  
  1319.  
  1320.  
  1321.  
  1322.  
  1323.  
  1324.  
  1325.  
  1326.  
  1327.  
  1328.  
  1329.  
  1330.  
  1331.  
  1332.  
  1333.                                                                          21
  1334.  
  1335.  
  1336.  
  1337.  
  1338.  
  1339.        Working With Multiple Documents
  1340.  
  1341.        WinEdit allows you to open multiple documents and switch back and
  1342.        forth from document to document.  To open a new document, choose
  1343.        New from the File menu and a new, untitled document window will
  1344.        appear.  To load an existing document/file, choose Open from the
  1345.        File menu.  Chose the file type you would like to open from the
  1346.        list box labeled "List Files of Type:".
  1347.        There are selections for source files (*.c;*.h;*.rc;*.def), text
  1348.        files (*.txt) and all files regardless of file extensions (*.*).
  1349.        Change to the appropriate drive and directory and double click on
  1350.        the file to open or select the file name and choose the OK button.
  1351.  
  1352.        Once you have several windows/files open, you can view a list of
  1353.        the open windows by pressing ALT+W.  The open files (drives and
  1354.        subdirectory paths included) are listed at the bottom of the Window
  1355.        menu.  The active window is indicated by the check mark before the
  1356.        file name.  Choose any of the windows listed to change the active
  1357.        window.
  1358.  
  1359.        Additionally, Tile and Cascade are available from the Windows menu
  1360.        to change the arrangement of the windows.  Choose Cascade to
  1361.        arrange all of the open windows in a stack.  When this is done the
  1362.        title bar for each window is visible so that the window can be made
  1363.        active by clicking on the title bar.  Choose Tile from the Windows
  1364.        menu to arrange all of the open windows on the screen so that a
  1365.        portion of each windows can be seen.
  1366.  
  1367.        All of the document windows can also be sized and minimized.  To
  1368.        size the document window, move the mouse over a window edge so that
  1369.        the mouse cursor changes to a double sided arrow.  Now, click the
  1370.        drag the mouse to change the size of the window.  To minimize a
  1371.        document window, click on the down arrow in the upper right corner
  1372.        of the document window.  The windows will appear at the bottom of
  1373.        the WinEdit screen as a icon (appears as a white piece of paper).
  1374.        To restore the document window back to its original size, double
  1375.        click on the icon.
  1376.  
  1377.  
  1378.  
  1379.  
  1380.  
  1381.  
  1382.  
  1383.  
  1384.  
  1385.  
  1386.  
  1387.  
  1388.                                                                          22
  1389.  
  1390.  
  1391.  
  1392.  
  1393.  
  1394.        Extended Help
  1395.  
  1396.        Press SHIFT+F1 or hold the SHIFT key and click the Right mouse
  1397.        button on any the desired function, message, or data structure name
  1398.        and WinEdit will access the help system topic for that item.
  1399.  
  1400.  
  1401.  
  1402.  
  1403.  
  1404.  
  1405.  
  1406.  
  1407.  
  1408.  
  1409.  
  1410.  
  1411.  
  1412.  
  1413.  
  1414.  
  1415.  
  1416.  
  1417.  
  1418.  
  1419.  
  1420.  
  1421.  
  1422.  
  1423.  
  1424.  
  1425.  
  1426.  
  1427.  
  1428.  
  1429.  
  1430.  
  1431.  
  1432.  
  1433.  
  1434.  
  1435.  
  1436.  
  1437.  
  1438.  
  1439.  
  1440.  
  1441.  
  1442.  
  1443.                                                                          23
  1444.  
  1445.  
  1446.  
  1447.  
  1448.  
  1449.        Finding Text
  1450.  
  1451.        Choose Find from the Search menu to search for text within the
  1452.        active document.
  1453.        You can specify the following options:
  1454.  
  1455.        * Find                   Type the text you want to find.
  1456.        * Match Upper/Lower      Case Select this box to match the upper
  1457.                                 and lower case exactly.
  1458.        * Forward                Search forward in the document starting at
  1459.                                 the insertion point.
  1460.        * Backward               Search backward in the document starting
  1461.                                 at the insertion point.
  1462.  
  1463.        Choose Repeat Last Find (or press CTRL+F5) to repeat the last
  1464.        search using the same options as the previous search, without
  1465.        opening the Find dialog box again.
  1466.  
  1467.        Choose Change from the Search menu to search for text in a document
  1468.        and replace the found text with text you specify.
  1469.        You can specify the following options:
  1470.  
  1471.        * Find                   Type the text you want to find in the
  1472.                                 document.
  1473.        * Replace with           Type the text you want to insert in place
  1474.                                 of the found text.
  1475.        * Match case             Select this box to match the upper and
  1476.                                 lower case exactly.
  1477.        * Search backwards       Search backward through the document
  1478.                                 starting at the insertion point.
  1479.        * Confirm before changing     When the search text is found, you
  1480.                                 will be asked if you want to change the
  1481.                                 occurrence with the replacement text
  1482.                                 (choose Yes, No or Cancel).
  1483.        * Change All             When this option is selected, WinEdit will
  1484.                                 start at the current cursor position and
  1485.                                 search the entire document.  If the
  1486.                                 "Confirm before changing" box is selected,
  1487.                                 you will be asked if you want to change
  1488.                                 the occurrence with the replacement text
  1489.                                 (choose Yes, No or Cancel).
  1490.  
  1491.  
  1492.  
  1493.  
  1494.  
  1495.  
  1496.  
  1497.  
  1498.                                                                          24
  1499.  
  1500.  
  1501.  
  1502.  
  1503.  
  1504.        Using Regular Expressions
  1505.  
  1506.        A regular expression is a search or replace string that uses
  1507.        special characters to match text patterns.  WinEdit supports UNIX
  1508.        style regular expressions.
  1509.        When WinEdit conducts a search using regular expressions, it must
  1510.        check character by character in your text.  For this reason,
  1511.        searches using regular expressions are slower than regular
  1512.        searches.
  1513.        The following table describes the regular expression characters
  1514.        recognized by WinEdit.
  1515.        Expression Description
  1516.         \         Escape. WinEdit will ignore any special meaning of the
  1517.                   character that follows the Escape expression.  Use the
  1518.                   Escape if you need to search for a literal character
  1519.                   that matches a regular expression character.
  1520.         .         Wild Card. Matches any character.  For example, the
  1521.                   expression 'X.X' will match 'XaX', 'XbX, and 'XcX', but
  1522.                   not 'XaaX'.
  1523.         ^         Beginning Of Line. The expression matches only if it
  1524.                   occurs at the beginning of a line.  For example, '^for'
  1525.                   matches the text 'for' only when it occurs at the
  1526.                   beginning of a line.
  1527.         $         End Of Line. The expression matches only if it occurs at
  1528.                   the end of a line.  For example, '(void)$' matches the
  1529.                   text '(void)' only when it occurs at the end of a line.
  1530.         [ ]       Character Class. The expression matches any character in
  1531.                   the class specified within the brackets.  Use a dash (-)
  1532.                   to specify a range of character values. For example,
  1533.                   '[a-zA-Z0-9]' matches any letter or number, and '[xyz]'
  1534.                   matches 'x', 'y', or 'z'.
  1535.         [ ^ ]     Inverse Class. The expression matches any character not
  1536.                   specified in the class.  For example, '[^a-zA-Z]'
  1537.                   matches any character that is not a letter.
  1538.         *         Repeat Operator. Matches zero or more occurrences of the
  1539.                   character that precedes the '*'.  For example, 'XY*X'
  1540.                   matches 'XX', 'XYX', and 'XYYX.
  1541.         +         Repeat Operator. Matches one or more occurrences of the
  1542.                   character that precedes the '+'.  For example, 'XY+X'
  1543.                   matches 'XYX' and 'XYYX, but not 'XX'.
  1544.  
  1545.  
  1546.  
  1547.  
  1548.  
  1549.  
  1550.  
  1551.  
  1552.  
  1553.                                                                          25
  1554.  
  1555.  
  1556.  
  1557.  
  1558.  
  1559.        Windows 3.1 Support
  1560.  
  1561.  
  1562.        "Drag and Drop"
  1563.  
  1564.        WinEdit is fully compatible with Windows version 3.1.  WinEdit
  1565.        version 2.0 adds support for drag and drop from File Manager.  To
  1566.        open files in WinEdit, simply drag and drop one or more files from
  1567.        the Windows File Manager onto WinEdit.  Drag and drop from File
  1568.        Manager is functional when WinEdit is either minimized or
  1569.        maximized.
  1570.  
  1571.  
  1572.        "Sounds"
  1573.  
  1574.        Whenever a Message Box comes up, WinEdit plays the WAVE file
  1575.        corresponding to the Message Box icon under Multimedia Windows or
  1576.        the Asterisk event under Windows 3.1.  Under Windows Win 3.0 the
  1577.        standard beep will play.  "Warning Sounds" is an option in File
  1578.        Preferences dialog and can be disabled if you'd like.  There is
  1579.        also a WinEdit Startup event that can be configured for any WAVE
  1580.        file when operating under Windows 3.1 or Multimedia Windows (sound
  1581.        card required).
  1582.  
  1583.  
  1584.  
  1585.  
  1586.  
  1587.  
  1588.  
  1589.  
  1590.  
  1591.  
  1592.  
  1593.  
  1594.  
  1595.  
  1596.  
  1597.  
  1598.  
  1599.  
  1600.  
  1601.  
  1602.  
  1603.  
  1604.  
  1605.  
  1606.  
  1607.  
  1608.                                                                          26
  1609.  
  1610.  
  1611.  
  1612.  
  1613.  
  1614.        Printing Documents
  1615.  
  1616.        Choose Print from the File menu to send the text of the current
  1617.        document to the active printer.  All print options such as the
  1618.        layout (one up portrait printing or two page landscape printing)
  1619.        and printer font, are set in the Page Setup dialog (accessible from
  1620.        the File menu).  The default printer selection is made in the
  1621.        Windows Control Panel Printers section.
  1622.  
  1623.        When choosing Print, the entire contents of the document file is
  1624.        sent to the printer.  To print only a selection of text, do the
  1625.        following:
  1626.  
  1627.        1. Select the text to print.
  1628.  
  1629.        2. Choose Copy from the Edit menu.
  1630.  
  1631.        3. Choose New from the File menu.
  1632.  
  1633.        4. Choose Paste from the Edit menu to paste the contents of the
  1634.           clipboard.
  1635.  
  1636.        5. Select the printer button on the Control Bar or choose Print from
  1637.           the File menu.
  1638.  
  1639.  
  1640.  
  1641.  
  1642.  
  1643.  
  1644.  
  1645.  
  1646.  
  1647.  
  1648.  
  1649.  
  1650.  
  1651.  
  1652.  
  1653.  
  1654.  
  1655.  
  1656.  
  1657.  
  1658.  
  1659.  
  1660.  
  1661.  
  1662.  
  1663.                                                                          27
  1664.  
  1665.  
  1666.  
  1667.  
  1668.  
  1669.        Saving Documents
  1670.  
  1671.        To save a document to disk under the current file name (the
  1672.        filename appears in the title bar for the document window), choose
  1673.        Save from the File menu.  If the file has not been saved before,
  1674.        WinEdit will prompt for a file name.  To save a document to a new
  1675.        name and/or location, choose Save As from the File menu.
  1676.  
  1677.        When a file is saved in WinEdit, the previous version of the
  1678.        document is renamed to the with a .BAK file extension.  For
  1679.        example, if you make changes to FILENAME.TXT and choose to save the
  1680.        file, the previous version of the file is renamed to FILENAME.BAK
  1681.        while the new changes are saved to FILENAME.TXT.  The backup file
  1682.        (FILENAME.BAK) is saved to the same directory as FILENAME.TXT.
  1683.  
  1684.  
  1685.  
  1686.  
  1687.  
  1688.  
  1689.  
  1690.  
  1691.  
  1692.  
  1693.  
  1694.  
  1695.  
  1696.  
  1697.  
  1698.  
  1699.  
  1700.  
  1701.  
  1702.  
  1703.  
  1704.  
  1705.  
  1706.  
  1707.  
  1708.  
  1709.  
  1710.  
  1711.  
  1712.  
  1713.  
  1714.  
  1715.  
  1716.  
  1717.  
  1718.                                                                          28
  1719.  
  1720.  
  1721.  
  1722.  
  1723.  
  1724.        Setting Preferences
  1725.  
  1726.        The WinEdit program preferences are accessible by choosing
  1727.        Preferences from the File menu.
  1728.  
  1729.        To change the screen font used to display document text, choose the
  1730.        button labeled Screen Font.  In the resulting dialog choose a font
  1731.        name from the listing of fixed spaced screen fonts on your system.
  1732.        In addition to the typeface, there are four styles to choose from:
  1733.        Regular, Italic, Bold and Bold Italic.  Select a style a point size
  1734.        for your on screen text.
  1735.  
  1736.        The Tab Size list box allows you to set the number of spaces you
  1737.        would like to be inserted into your document, each time you press
  1738.        the tab key.  Values range from one space to twelve spaces per tab.
  1739.  
  1740.        The "Reopen last file at startup" is helpful if you usually start
  1741.        working were you left off in your last WinEdit session.  If this
  1742.        option is selected, the last file open in WinEdit will be opened
  1743.        automatically the next time WinEdit is started.  If this option is
  1744.        not selected, WinEdit will open with no windows open (use the File
  1745.        New or File Open command to begin working in WinEdit).
  1746.  
  1747.        The "Zoom window at startup" option determines the size of the
  1748.        document window on startup of WinEdit.  If the "Zoom" option is
  1749.        selected, then the WinEdit program will start with the document
  1750.        window zoomed out so that it fills the WinEdit program area.  If
  1751.        the "Zoom" option is not selected in File Preferences, then the
  1752.        WinEdit document window will not fill the WinEdit program area.
  1753.  
  1754.        The Show Control Bar option simply toggles the Control Bar of
  1755.        buttons On (if selected) or Off if not selected in File
  1756.        Preferences.
  1757.  
  1758.        The "Warning sounds" option plays the WAVE file corresponding to
  1759.        the Message Box icon under Multimedia Windows or Windows 3.1,
  1760.        whenever a Message Box pops up such as search text not found.
  1761.        Under Windows version 3.0, the standard system beep will sound.
  1762.  
  1763.  
  1764.  
  1765.  
  1766.  
  1767.  
  1768.  
  1769.  
  1770.  
  1771.  
  1772.  
  1773.                                                                          29
  1774.  
  1775.  
  1776.  
  1777.  
  1778.  
  1779.        Setting Margins, Headers and Footers
  1780.  
  1781.  
  1782.        Headers and Footers
  1783.  
  1784.        Choose Page Setup from the File menu to configure header and footer
  1785.        text.  Type the text you wish to appear at the top and bottom of
  1786.        each page.
  1787.  
  1788.        You can use the following special characters in headers and
  1789.        footers:
  1790.        * %f                The document name will appear.
  1791.        * %d                The date and time of the printout will appear.
  1792.        * %p                The page number will appear.
  1793.  
  1794.        The default header text is "%f - %d" or Document Name - Date and
  1795.        Time of the printout.
  1796.  
  1797.        The default footer text is "Page %p" or Page 1.
  1798.  
  1799.        Changes made to the header and footer text are remembered for the
  1800.        next session of WinEdit.
  1801.  
  1802.        Margins
  1803.  
  1804.        Choose Page Setup from the File menu to change the margins used for
  1805.        WinEdit's printouts.  You can enter the measurements for top,
  1806.        bottom, left, and right margins.  The margin values are either in
  1807.        inches or centimeters, depending upon the Measurement setting in
  1808.        the Windows Control Panel International section/icon.
  1809.  
  1810.  
  1811.  
  1812.  
  1813.  
  1814.  
  1815.  
  1816.  
  1817.  
  1818.  
  1819.  
  1820.  
  1821.  
  1822.  
  1823.  
  1824.  
  1825.  
  1826.  
  1827.  
  1828.                                                                          30
  1829.  
  1830.  
  1831.  
  1832.  
  1833.  
  1834.        Undo and Redo
  1835.  
  1836.  
  1837.        Undo
  1838.  
  1839.        Allows you to "undo" previous editing actions.  WinEdit can undo
  1840.        the following edits:
  1841.             Inserting a character.
  1842.             Deleting a character.
  1843.             Cutting a selection.
  1844.             Pasting a selection.
  1845.        WinEdit can undo the last 2000 editing actions.  Press
  1846.        ALT+Backspace to undo the last editing action or select Undo from
  1847.        the Edit menu.
  1848.  
  1849.        Redo
  1850.  
  1851.        Allows you to reverse any Undo command.  If you undo an editing
  1852.        action by mistake, you can "redo" the edit.  Press CTRL+Backspace
  1853.        to redo the last editing action or choose Redo from the Edit menu.
  1854.  
  1855.  
  1856.  
  1857.  
  1858.  
  1859.  
  1860.  
  1861.  
  1862.  
  1863.  
  1864.  
  1865.  
  1866.  
  1867.  
  1868.  
  1869.  
  1870.  
  1871.  
  1872.  
  1873.  
  1874.  
  1875.  
  1876.  
  1877.  
  1878.  
  1879.  
  1880.  
  1881.  
  1882.  
  1883.                                                                          31
  1884.  
  1885.  
  1886.  
  1887.  
  1888.  
  1889.        WinEdit Project Files
  1890.  
  1891.        Information entered into the Project Management dialog (choose
  1892.        Configure... from the Project menu) can be saved in a private INI
  1893.        file with a .WPJ (WinEdit Project File) extension.  Choose the
  1894.        Save... pushbutton to save the contents of the dialog box in a .WPJ
  1895.        file.  The default save path for the WPJ files is the Windows
  1896.        directory.  After creating several project files you can load an
  1897.        existing .WPJ file by clicking on the Open... pushbutton.
  1898.  
  1899.        There five edit boxes for your Compile, Make, Rebuild, Debug and
  1900.        Execute command line information.  The following wildcards are
  1901.        provided so that filenames in the Project Management dialog do not
  1902.        need to be changed when compiling different files:
  1903.           %f = file name
  1904.           %n = base name, no extension
  1905.           %e = file extension only
  1906.        If you select the Capture Output box, WinEdit will run the program
  1907.        you configure and save its output.  When the program finishes,
  1908.        WinEdit will ask if you wish to review any warning or error
  1909.        messages, along with the corresponding source code.  WinEdit
  1910.        constructs a batch file to execute from DOS when you choose to
  1911.        capture output.  For this reason, when running a Windows
  1912.        application from the Run menu, do not choose to capture the output.
  1913.        The Project Name field can be filled with a brief description of
  1914.        the project.  The Working Directory field sets the default open and
  1915.        save directories for your project to the path indicated in this
  1916.        field.
  1917.  
  1918.        Note: The last project file open in WinEdit, will automatically be
  1919.        loaded the next time you start WinEdit.  To change to another
  1920.        project file, choose Configure... from the Project menu and choose
  1921.        the Open... pushbutton.
  1922.  
  1923.  
  1924.  
  1925.  
  1926.  
  1927.  
  1928.  
  1929.  
  1930.  
  1931.  
  1932.  
  1933.  
  1934.  
  1935.  
  1936.  
  1937.  
  1938.                                                                          32
  1939.  
  1940.  
  1941.  
  1942.  
  1943.  
  1944.        WinEdit Extensions
  1945.  
  1946.  
  1947.        A WinEdit Extension DLL is a dynamic-link library (DLL) that
  1948.        contains a pre-defined entry point that processes menu commands and
  1949.        notification messages sent by WinEdit.  You can redefine WinEdit's
  1950.        menus and accelerators and write new functions which access WinEdit
  1951.        functions directly.
  1952.  
  1953.        Creating a WinEdit Extension
  1954.  
  1955.        A WinEdit Extension DLL must be named WE_EXT.DLL and must include a
  1956.        standard entry point, the WE_ExtensionProc function. It must
  1957.        include the WE_EXT.H header file that defines WinEdit messages and
  1958.        structures. WinEdit communicates with the Extension DLL by sending
  1959.        messages to the DLL's WE_ExtensionProc function.
  1960.  
  1961.          The WE_ExtensionProc function is defined as follows:
  1962.  
  1963.        WE_ExtensionProc(HWND hWnd,     /* WinEdit's window handle */
  1964.                         HANDLE hInst,  /* instance identifier     */
  1965.                         UINT wParam,   /* command ID              */
  1966.                         LONG lParam)   /* additional information  */
  1967.  
  1968.         The hWnd parameter identifies the main WinEdit window.  This
  1969.         window handle is used in most of the extension functions, and
  1970.         should also be used as the parent window for any child windows,
  1971.         dialog boxes, or message boxes created.
  1972.  
  1973.         The hInst parameter is the HINSTANCE of the Extension DLL.  This
  1974.         parameter is used when retrieving resources from the DLL.
  1975.  
  1976.         The wParam parameter contains the message ID, which may be a
  1977.         command ID from a menu or accelerator, a notification message from
  1978.         WinEdit, or a request for information from WinEdit.
  1979.  
  1980.         The lParam parameter is used in some messages to pass additional
  1981.         information to the Extension DLL.
  1982.  
  1983.  
  1984.  
  1985.  
  1986.  
  1987.  
  1988.  
  1989.  
  1990.  
  1991.  
  1992.  
  1993.                                                                          33
  1994.  
  1995.  
  1996.  
  1997.  
  1998.  
  1999.        Loading the Extension
  2000.  
  2001.         WinEdit searches the current directory and the path for
  2002.         WE_EXT.DLL, and explicitly loads the Extension DLL if it is found.
  2003.         If the DLL is successfully loaded, WinEdit then sends the
  2004.         following notification and request messages to the Extension DLL:
  2005.  
  2006.             WEN_LOADMENU
  2007.               This message is a request for a menu handle to be used as
  2008.               the main WinEdit menu.  If the Extension DLL returns a
  2009.               handle to a menu as the return value for this message,
  2010.               WinEdit uses that menu.  If the Extension DLL returns 0, the
  2011.               standard WinEdit menu is used.
  2012.  
  2013.             WEN_LOADSHORTMENU
  2014.               This message is a request for a menu handle to be used as
  2015.               the "No file" menu.  WinEdit displays this menu whenever no
  2016.               MDI child windows are open.  If the Extension DLL returns a
  2017.               handle to a menu as the return value for this message,
  2018.               WinEdit uses that menu.  If the Extension DLL returns 0, the
  2019.               standard WinEdit menu is used.
  2020.  
  2021.             WEN_LOADACCELS
  2022.               This message is a request for a handle to an accelerator
  2023.               table.  If the Extension DLL returns a handle to an
  2024.               accelerator table as the return value for this message,
  2025.               WinEdit will use that accelerator table.  If the Extension
  2026.               DLL returns 0, the standard WinEdit accelerator table is
  2027.               used.
  2028.  
  2029.             WEN_GETWINDOWMENU
  2030.               If the Extension DLL returned a menu handle in the
  2031.               WEN_LOADMENU message, this message will be sent to obtain
  2032.               the handle to the Window popup menu.  WinEdit uses this menu
  2033.               handle to append MDI child window names to.
  2034.  
  2035.             WEN_GETMACROMENU
  2036.               If the Extension DLL returned a menu handle in the
  2037.               WEN_LOADMENU message, this message will be sent to obtain
  2038.               the handle to the Macro popup menu.  WinEdit uses this menu
  2039.               handle to append macro names to.
  2040.  
  2041.             WEN_INITMENU
  2042.               This message is sent before showing any drop down menu
  2043.               items.  Respond by setting any check marks, graying any
  2044.               inapplicable items, etc.
  2045.  
  2046.  
  2047.  
  2048.                                                                          34
  2049.  
  2050.  
  2051.  
  2052.  
  2053.  
  2054.             WEN_MACROSTARTPLAY
  2055.               This message is sent when a keyboard macro playback is
  2056.               started.
  2057.  
  2058.             WEN_MACROSTOPPLAY
  2059.               This message is sent when a keyboard macro playback is
  2060.               stopped.
  2061.  
  2062.             WEN_MACROSTARTRECORD
  2063.               This message is sent when a keyboard macro recording is
  2064.               started.  The menu item for toggling starting and stopping
  2065.               recording should be changed to "Stop Recording".
  2066.  
  2067.             WEN_MACROSTOPRECORD
  2068.               This message is sent when a keyboard macro recording is
  2069.               stopped.  The menu item for toggling starting and stopping
  2070.               recording should be changed to "Record Macro".
  2071.  
  2072.             WEN_RBUTTONDOWN
  2073.               This message is sent when the right mouse button is clicked
  2074.               in an MDI child window.
  2075.  
  2076.             WEN_RBUTTONDOWNC
  2077.               This message is sent when the right mouse button is clicked
  2078.               while the control key is down in an MDI child window.
  2079.  
  2080.             WEN_RBUTTONDOWNS
  2081.               This message is sent when the right mouse button is clicked
  2082.               while the shift key is down in an MDI child window.
  2083.  
  2084.             WEN_RBUTTONDOWNSC
  2085.               This message is sent when the right mouse button is clicked
  2086.               while the control key and the shift keys are down in an MDI
  2087.               child window.
  2088.  
  2089.             WEN_END
  2090.               This message is sent before the DLL is unloaded.  Any
  2091.               cleanup processing should be done, such as releasing
  2092.               allocated memory.
  2093.  
  2094.  
  2095.  
  2096.  
  2097.  
  2098.  
  2099.  
  2100.  
  2101.  
  2102.  
  2103.                                                                          35
  2104.  
  2105.  
  2106.  
  2107.  
  2108.  
  2109.        Processing Menu Selections
  2110.  
  2111.         A WinEdit Extension DLL's menu resource can include two levels of
  2112.         menu identifiers.  Identifiers in the range of WE_EXTFIRST through
  2113.         WE_EXTLAST (defined in WE_EXT.H) are sent to the Extension DLL for
  2114.         processing.  Other identifiers defined in WE_EXT.H that begin with
  2115.         IDM_ are internal WinEdit commands that WinEdit handles without
  2116.         calling the Extension DLL.
  2117.  
  2118.         When designing menus or accelerators, use the IDM_ identifiers for
  2119.         predefined functions which WinEdit will handle without further
  2120.         processing by your Extension DLL.  Use identifiers in the range of
  2121.         WE_EXTFIRST through WE_EXTLAST for functions you define.  When the
  2122.         user selects a menu item or presses an accelerator key which is
  2123.         defined with an identifier in that range, WinEdit will pass the
  2124.         message on to the Extension DLL for processing.  The following
  2125.         code example shows a simple example of a user-defined function
  2126.         being called:
  2127.  
  2128.           #define EXT_EXAMPLE  WE_EXTFIRST+1
  2129.           .
  2130.           .
  2131.           .
  2132.           switch (wParam)
  2133.              {
  2134.              case EXT_EXAMPLE:
  2135.                 return MyFunction();
  2136.                 break;
  2137.  
  2138.        Initializing the Extension Menu
  2139.  
  2140.         Whenever the user selects a menu item, WinEdit sends the
  2141.         WEN_INITMENU message to the Extension DLL. The Extension DLL
  2142.         should respond to this message by adding check marks or disabling
  2143.         or enabling items.  If the Extension DLL did not load its own
  2144.         menu, it can ignore this message.
  2145.  
  2146.  
  2147.  
  2148.  
  2149.  
  2150.  
  2151.  
  2152.  
  2153.  
  2154.  
  2155.  
  2156.  
  2157.  
  2158.                                                                          36
  2159.  
  2160.  
  2161.  
  2162.  
  2163.  
  2164.        WinEdit Extension Example
  2165.  
  2166.  
  2167.        The following example shows a minimal WinEdit Extension DLL's
  2168.        WE_ExtensionProc function.  The Extension DLL loads its own menus
  2169.        and accelerator table, and defines one new command.
  2170.  
  2171.        #include <windows.h>
  2172.        #include "we_ext.h"
  2173.  
  2174.        #define MACROMENU   4   /* position of macro menu  (0 based)      */
  2175.        #define WINDOWMENU  5   /* position of window menu (0 based)      */
  2176.        #define EXT_EXAMPLE   WE_EXTFIRST+1
  2177.  
  2178.        UINT FAR PASCAL WE_ExtensionProc(HWND hWnd,
  2179.                                         HANDLE hInst,
  2180.                                         UINT wParam,
  2181.                                         LONG lParam)
  2182.           {
  2183.           switch (wParam)
  2184.              {
  2185.              case WEN_LOADMENU:
  2186.  
  2187.                 /*  This is the menu WinEdit will display when there
  2188.                  *  is at least one document window open.  Return NULL
  2189.                  *  to use the default WinEdit menu.
  2190.                  */
  2191.                 return (UINT)LoadMenu(hInst, "MyMenu");
  2192.                 break;
  2193.  
  2194.              case WEN_LOADSHORTMENU:
  2195.  
  2196.                 /*  this is the menu WinEdit will display when there
  2197.                  *  are no document windows open.  Return NULL
  2198.                  *  to use the default WinEdit menu.
  2199.                  */
  2200.                    return (UINT)LoadMenu(hInst, "MyShortMenu");
  2201.                    break;
  2202.  
  2203.  
  2204.  
  2205.  
  2206.  
  2207.  
  2208.  
  2209.  
  2210.  
  2211.  
  2212.  
  2213.                                                                          37
  2214.  
  2215.  
  2216.  
  2217.  
  2218.              case WEN_LOADACCELS:
  2219.  
  2220.                 /*  To re-define the WinEdit command keys, load your
  2221.                  *  own accelerator table here.  Return NULL to
  2222.                  *  use the default WinEdit accelerators.
  2223.                  */
  2224.                 return (UINT)LoadAccelerators (hInst,"MyAccels");
  2225.                 break;
  2226.  
  2227.              case WEN_GETWINDOWMENU:
  2228.  
  2229.                 /*  WinEdit needs the handle of the submenu to
  2230.                  *  append MDI document names to.  The hWnd parameter
  2231.                  *  is used to send the handle to the main menu.
  2232.                  *  This message will not be sent if you return
  2233.                  *  NULL to the WEN_LOADMENU message.
  2234.                  */
  2235.                 return (UINT)GetSubMenu ((HMENU)hWnd, WINDOWMENU);
  2236.                 break;
  2237.  
  2238.              case WEN_GETMACROMENU:
  2239.  
  2240.                 /*  WinEdit needs the handle of the submenu to
  2241.                  *  append macro names to.  The hWnd parameter
  2242.                  *  is used to send the handle to the main menu.
  2243.                  *  This message will not be sent if you return
  2244.                  *  NULL to the WEN_LOADMENU message.
  2245.                  */
  2246.                 return (UINT)GetSubMenu ((HMENU)hWnd, MACROMENU);
  2247.                 break;
  2248.  
  2249.              case WEN_END:
  2250.  
  2251.                 /*  WinEdit is shutting down.  Do any clean-up processing
  2252.                  *  here.
  2253.                  */
  2254.                 return TRUE;
  2255.                 break;
  2256.  
  2257.  
  2258.  
  2259.  
  2260.  
  2261.  
  2262.  
  2263.  
  2264.  
  2265.  
  2266.  
  2267.  
  2268.                                                                          38
  2269.  
  2270.  
  2271.  
  2272.  
  2273.              case WEN_INITMENU:
  2274.  
  2275.                 /*  This message is sent before showing any drop down
  2276.                  *  menu items.  Respond by setting any checkmarks,
  2277.                  *  graying any inapplicable items, etc.
  2278.                  */
  2279.                 {
  2280.                 POINT ptStart,ptEnd;
  2281.                 HMENU hCurrentMenu;
  2282.                 UINT  wStatus;
  2283.  
  2284.                 hCurrentMenu = GetMenu(hWnd);
  2285.  
  2286.                 /*  if there is a current selection, enable the cut & copy
  2287.                  *  commands.
  2288.                  */
  2289.                 wStatus = (UINT)edGetSelectionState(hWnd, &ptStart, &ptEnd);
  2290.                 if (!wStatus)
  2291.                    wStatus = MF_GRAYED;
  2292.                 else
  2293.                    wStatus = MF_ENABLED;
  2294.                 EnableMenuItem(hCurrentMenu, IDM_EDITCUT,  wStatus);
  2295.                 EnableMenuItem(hCurrentMenu, IDM_EDITCOPY, wStatus);
  2296.  
  2297.                 /*  if there is text on the clipboard, enable the paste
  2298.                  *  command.
  2299.                  */
  2300.                 if (OpenClipboard(hWnd))
  2301.                    {
  2302.                    if (IsClipboardFormatAvailable(CF_TEXT)
  2303.                          || IsClipboardFormatAvailable(CF_OEMTEXT))
  2304.                       EnableMenuItem(hCurrentMenu, IDM_EDITPASTE, MF_ENABLED);
  2305.                    else
  2306.                       EnableMenuItem(hCurrentMenu, IDM_EDITPASTE, MF_GRAYED);
  2307.                    CloseClipboard();
  2308.                    }
  2309.                 else
  2310.                    EnableMenuItem(hCurrentMenu, IDM_EDITPASTE, MF_GRAYED);
  2311.  
  2312.  
  2313.  
  2314.  
  2315.  
  2316.  
  2317.  
  2318.  
  2319.  
  2320.  
  2321.  
  2322.  
  2323.                                                                          39
  2324.  
  2325.  
  2326.  
  2327.  
  2328.                 /* set the Undo, Redo, Insert, and WordWrap menu items */
  2329.                 wStatus = (UINT)edGetUndoState(hWnd);
  2330.                 if (!wStatus)
  2331.                    wStatus = MF_GRAYED;
  2332.                 else
  2333.                    wStatus = MF_ENABLED;
  2334.                 EnableMenuItem(hCurrentMenu, IDM_EDITUNDO, wStatus);
  2335.                 wStatus = (UINT)edGetRedoState(hWnd);
  2336.                 if (!wStatus)
  2337.                    wStatus = MF_GRAYED;
  2338.                 else
  2339.                    wStatus = MF_ENABLED;
  2340.                 EnableMenuItem(hCurrentMenu, IDM_EDITREDO, wStatus);
  2341.  
  2342.                 wStatus = (UINT)edGetWordWrapState(hWnd);
  2343.                 if (!wStatus)
  2344.                    wStatus = MF_UNCHECKED;
  2345.                 else
  2346.                    wStatus = MF_CHECKED;
  2347.                 CheckMenuItem (hCurrentMenu, IDM_EDITTOGGLEWRAP,
  2348.                                MF_BYCOMMAND|wStatus);
  2349.  
  2350.                 wStatus = (UINT)edGetInsertState(hWnd);
  2351.                 if (!wStatus)
  2352.                    wStatus = MF_UNCHECKED;
  2353.                 else
  2354.                    wStatus = MF_CHECKED;
  2355.                 CheckMenuItem (hCurrentMenu, IDM_EDITTOGGLEINS,
  2356.                                MF_BYCOMMAND|wStatus);
  2357.  
  2358.                 return TRUE;   /* we handled it, don't return 0 */
  2359.                 break;
  2360.                 }
  2361.  
  2362.              /*  You can define your own commands in the range
  2363.               *  WE_EXTFIRST to WE_EXTLAST that can be attached to
  2364.               *  menu items or accelerators.
  2365.               */
  2366.              case EXT_EXAMPLE:
  2367.                 MessageBox(hWnd,"Example command","WinEdit Extension",
  2368.                            MB_ICONINFORMATION|MB_OK);
  2369.                 return TRUE;
  2370.                 break;
  2371.  
  2372.  
  2373.  
  2374.  
  2375.  
  2376.  
  2377.  
  2378.                                                                          40
  2379.  
  2380.  
  2381.  
  2382.  
  2383.              default:
  2384.  
  2385.                 /* return NULL to all messages not processed. */
  2386.                 break;
  2387.  
  2388.              }  /* end switch (wParam) */
  2389.  
  2390.           return NULL;
  2391.           }
  2392.  
  2393.  
  2394.  
  2395.  
  2396.  
  2397.  
  2398.  
  2399.  
  2400.  
  2401.  
  2402.  
  2403.  
  2404.  
  2405.  
  2406.  
  2407.  
  2408.  
  2409.  
  2410.  
  2411.  
  2412.  
  2413.  
  2414.  
  2415.  
  2416.  
  2417.  
  2418.  
  2419.  
  2420.  
  2421.  
  2422.  
  2423.  
  2424.  
  2425.  
  2426.  
  2427.  
  2428.  
  2429.  
  2430.  
  2431.  
  2432.  
  2433.                                                                          41
  2434.  
  2435.  
  2436.  
  2437.  
  2438.  
  2439.        Configuring the Utility Menu
  2440.  
  2441.  
  2442.        The Utility Menu is a custom menu created with WIL language
  2443.        extension commands.  The menu items on the Utility Menu and the
  2444.        functions behind them are totally configurable.  The WINEDIT.MNU
  2445.        file contains the menu item text and the WIL language functions
  2446.        behind them.  The functions are made up of statements, constants,
  2447.        and variables, much like any programming language.  To edit the
  2448.        Utility Menu file choose "Edit Utility Menu" from the Utility Menu.
  2449.  
  2450.        In the WINEDIT.MNU file, the menu item text that appears below the
  2451.        Utility Menu begins in Column one of the text file.  Commands for
  2452.        the menu item are at least 8 spaces to the right below the menu
  2453.        text.  In the example below, "File Open with prompt" is the text
  2454.        that will appear on the Utility Menu and the "WFileOpen("")"
  2455.        command will be executed if the menu item is selected.
  2456.  
  2457.        File Open with prompt    ; Open a document file via dialog box
  2458.                WFileOpen("")
  2459.  
  2460.        wFileOpen(filename)
  2461.        Comments
  2462.          wFileOpen creates a new MDI child window and reads an existing
  2463.          file into the window.  To open a file without a prompt, pass a
  2464.          valid filename to wFileOpen.  If the FileName parameter is "",
  2465.          the File Open dialog box will be appear prompting for a filename
  2466.          to open.
  2467.  
  2468.        To create a pop-out submenu, add one space before the menu title
  2469.        for every item of the main menu.  For example, "Accessories" will
  2470.        appear on the Utility Menu with "Appointment Scheduling" and
  2471.        "Calculator" appearing as pop out menu selections.
  2472.  
  2473.        Accessories
  2474.         Appointment Scheduling
  2475.                   run("Calendar.exe","")
  2476.         C&alculator
  2477.                   run("calc.exe","")
  2478.  
  2479.        Adding an ampersand before any letter in the title causes that
  2480.        letter to be displayed underlined.  Such underlined letters are
  2481.        recognized by Windows as menu hot keys accessed through an
  2482.        ALT+letter key combination.
  2483.  
  2484.        Please refer to the WIL.HLP help file for detailed information on
  2485.        WIL language menu scripts.
  2486.  
  2487.  
  2488.                                                                          42
  2489.